<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:jq="http://www.jquery4jsf.org/jsf"
	template="../templates/template-principale.xhtml">
	<ui:define name="title">
		<h:outputText value=" - Spinner - #{resource.SPINNER_TITLE_AUTOHIDE}" />
	</ui:define>
	<ui:define name="content">
		<h3>
			Spinner - #{resource.SPINNER_TITLE_AUTOHIDE}
		</h3>

		<p>
			#{resource.SPINNER_DESCR_AUTOHIDE}
		</p>
		<jq:tabbedPanel>
			<jq:tabPanel tabName="Demo">
				<!-- START -->
				<jq:ajaxStatus>
					<f:facet name="start">
						<h:graphicImage value="/images/ajaxloading.gif"></h:graphicImage>
					</f:facet>
					<f:facet name="complete">
						<h:outputText value="Ajax Request Completed" />
					</f:facet>
				</jq:ajaxStatus>
				<h:form id="form">
					<h:panelGrid columns="2">
						<h:outputText value="Spinner value:" />
						<h:inputText id="spinner" value="#{spinnerBean.spinnerValue}">
							<jq:spinner hide="slow" />
						</h:inputText>
						<h:outputText value="Spinner 2 value:" />
						<h:inputText id="spinner2" value="#{spinnerBean.spinnerValue}">
							<jq:spinner hide="fast" />
						</h:inputText>
						<jq:button value="Send"
							ajaxSubmit="true"
							actionListener="#{spinnerBean.doSpinnerListener}" target="update"
							id="button" />
					</h:panelGrid>
				</h:form>
				<br />
				<h:outputText value="#{spinnerBean.textSpinner}" id="update" />
				<!-- end -->
				<ui:include src="../templates/source.xhtml"></ui:include>
			</jq:tabPanel>
			<jq:tabPanel tabName="Tag Information">
				<ui:include src="../templates/taginformation.xhtml">
					<ui:param name="tagName" value="spinner"></ui:param>
					<ui:param name="tagDefinition"
						value="#{startupBean.tagLib.tags['spinner']}"></ui:param>
				</ui:include>
			</jq:tabPanel>
		</jq:tabbedPanel>
	</ui:define>
</ui:composition>